﻿@model MvcCms.Store.Web.ViewModels.DefaultViewModel

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm(Html.BeginForm("createpriceoption", "storemanager", FormMethod.Post, new { autocomplete = "off" })))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Price Option</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model._PriceOption.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model._PriceOption.Title)
            @Html.ValidationMessageFor(model => model._PriceOption.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model._PriceOption.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model._PriceOption.Description, new { @class = "textarea" })
            @Html.ValidationMessageFor(model => model._PriceOption.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model._PriceOption.Price)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model._PriceOption.Price)
            @Html.ValidationMessageFor(model => model._PriceOption.Price)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model._PriceOption.RequiresNotes)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model._PriceOption.RequiresNotes)
            @Html.ValidationMessageFor(model => model._PriceOption.RequiresNotes)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model._PriceOption.NotesInstructions)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model._PriceOption.NotesInstructions, new { @class = "textarea" })
            @Html.ValidationMessageFor(model => model._PriceOption.NotesInstructions)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "PriceOptions")
</div>

